import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { HandleComponent } from './handle.component';
import { AddhandleComponent } from './addhandle/addhandle.component';
import { EdithandleComponent } from './edithandle/edithandle.component'
import { StepsComponent } from './steps/steps.component';
import { DetailStepsComponent } from './detail_steps/detail_steps.component';
import { PreviewdocumentComponent } from './previewdocument/previewdocument.component';

const routes: Routes = [
  { 
    path:'',  
    component:HandleComponent,

  },
  { 
    path:'addhandle',  
    component:AddhandleComponent,
    data:{title:'新增案件',breadcrumb:'addhandle'}
  },
  {
    path: 'detailsteps/:id/:type/:opera',
    component: DetailStepsComponent,
    data:{title:'案件详情',breadcrumb:'detailstep'}
  },
  {
    path: 'steps/:id/:type/:opera',
    component: StepsComponent,
    data:{title:'案件详情',breadcrumb:'step'}
  },
  {
    path:'edithandle/:id/:docid/:desk',
    component:EdithandleComponent,
    data:{title:'案件办理',breadcrumb:'edithandle'}
  },
  {
    path:'previewdocument/:id',
    component:PreviewdocumentComponent,
    data:{title:'案件预览',breadcrumb:'preview'}
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class HandleRoutingModule { }
